package com.exam.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.exam.demo.entity.Student;
import com.exam.demo.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 功能描述
 *
 * @author yxj30
 * @date 2022/03/16  19:31
 */
@Mapper
public interface StudentMapper extends BaseMapper<Student> {
    //使用mybatis获取教师数据，包括学院名
    Page<Student> findPage(Page<Student> objectPage, @Param("studentName") String studentName);
    List<Student> findPage(@Param("studentName") String studentName); //导出数据时调用

}
